package org.chnxi.study.springcloud.alibaba.storage.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StorageController {

    @Value("[${spring.application.name}-${server.port}]:")
    private String appName;

    @GetMapping("/storage/test")
    public String test(){
        return appName+"ok";
    }

    public static void main(String[] args) {
        int num = 16;
        System.out.println(num + (num >> 1));
    }

}
